package com.hilaver.dzmis.exhibition.hibernate;

import java.util.HashSet;
import java.util.Set;

/**
 * Yarn entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Yarn implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Double price;
	private String comment;
	private Double weight1;
	private Double coefficient1;
	private Double weight2;
	private Double coefficient2;
	private Double weight3;
	private Double coefficient3;
	private Set exOrderItems = new HashSet(0);

	// Constructors

	/** default constructor */
	public Yarn() {
	}

	/** minimal constructor */
	public Yarn(String name, Double price) {
		this.name = name;
		this.price = price;
	}

	/** full constructor */
	public Yarn(String name, Double price, String comment, Double weight1,
			Double coefficient1, Double weight2, Double coefficient2,
			Double weight3, Double coefficient3, Set exOrderItems) {
		this.name = name;
		this.price = price;
		this.comment = comment;
		this.weight1 = weight1;
		this.coefficient1 = coefficient1;
		this.weight2 = weight2;
		this.coefficient2 = coefficient2;
		this.weight3 = weight3;
		this.coefficient3 = coefficient3;
		this.exOrderItems = exOrderItems;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Double getWeight1() {
		return this.weight1;
	}

	public void setWeight1(Double weight1){
		this.weight1 = weight1;
	}

	public Double getCoefficient1() {
		return this.coefficient1;
	}

	public void setCoefficient1(Double coefficient1) {
		this.coefficient1 = coefficient1;
	}

	public Double getWeight2() {
		return this.weight2;
	}

	public void setWeight2(Double weight2) {
		this.weight2 = weight2;
	}

	public Double getCoefficient2() {
		return this.coefficient2;
	}

	public void setCoefficient2(Double coefficient2) {
		this.coefficient2 = coefficient2;
	}

	public Double getWeight3() {
		return this.weight3;
	}

	public void setWeight3(Double weight3) {
		this.weight3 = weight3;
	}

	public Double getCoefficient3() {
		return this.coefficient3;
	}

	public void setCoefficient3(Double coefficient3) {
		this.coefficient3 = coefficient3;
	}

	public Set getExOrderItems() {
		return this.exOrderItems;
	}

	public void setExOrderItems(Set exOrderItems) {
		this.exOrderItems = exOrderItems;
	}

}